package com.qf.grabtickets.controller;

import com.qf.entity.User;
import com.qf.grabtickets.service.ITUserService;
import com.qf.vo.ResultVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.io.UnsupportedEncodingException;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ljc
 * @since 2023-03-10
 */
@RestController
@RequestMapping("/get")
@Slf4j
public class UserController {

    @Autowired
    ITUserService service;
    @RequestMapping("/token")
    public String gettoken(Integer id) throws UnsupportedEncodingException {
      log.debug("id:{}",id);

     return service.gettoken(id);

    }
}
